package com.myc;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @Classname com.myc.UserMapper
 * @Description
 * @Date 2020-09-03 17:24
 * @Created by myc
 */
@Mapper
public interface UserMapper {
    @Select("select * from jm_user")
    List<Map<String,Object>> selectAll();

    @Select("select * from jm_user where id = #{id} and mobile = #{mobile}")
    Map<String,Object> selectById(@Param("id") Integer id,@Param("mobile") String mobile);
}
